package top.zhuyougu.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 系统配置表
 * </p>
 *
 * @author 猪油骨
 * @since 2022-12-10 01:15:43
 */
@Getter
@Setter
@TableName("b_system_config")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "SystemConfig对象", description = "系统配置表")
public class SystemConfig implements Serializable {
    private static final long serialVersionUID=1L;
    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("七牛云公钥")
    @TableField("qi_niu_access_key")
    private String qiNiuAccessKey;

    @ApiModelProperty("七牛云私钥")
    @TableField("qi_niu_secret_key")
    private String qiNiuSecretKey;

    @ApiModelProperty("七牛云存储区域 华东（z0），华北(z1)，华南(z2)，北美(na0)，东南亚(as0)")
    @TableField("qi_niu_area")
    private String qiNiuArea;

    @ApiModelProperty("七牛云上传空间")
    @TableField("qi_niu_bucket")
    private String qiNiuBucket;

    @ApiModelProperty("七牛云域名前缀：http://images.moguit.cn")
    @TableField("qi_niu_picture_base_url")
    private String qiNiuPictureBaseUrl;

    @ApiModelProperty("文件上传七牛云(0:否， 1:是)")
    @TableField("upload_qi_niu")
    private String uploadQiNiu;

    @ApiModelProperty("是否开启注册用户邮件激活(0:否， 1:是)")
    @TableField("open_email_activate")
    private String openEmailActivate;

    @ApiModelProperty("是否开启邮件通知(0:否， 1:是)")
    @TableField("start_email_notification")
    private String startEmailNotification;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    @ApiModelProperty("是否开启仪表盘通知(0:否， 1:是)")
    @TableField("open_dashboard_notification")
    private String openDashboardNotification;

    @ApiModelProperty("仪表盘通知【用于首次登录弹框】MD")
    @TableField("dashboard_notification_md")
    private String dashboardNotificationMd;

    @ApiModelProperty("仪表盘通知【用于首次登录弹框】")
    @TableField("dashboard_notification")
    private String dashboardNotification;

    @ApiModelProperty("搜索模式【0:SQL搜索 、1：全文检索】")
    @TableField("search_model")
    private Integer searchModel;

    @ApiModelProperty("邮箱地址")
    @TableField("email_host")
    private String emailHost;

    @ApiModelProperty("邮箱发件人")
    @TableField("email_username")
    private String emailUsername;

    @ApiModelProperty("邮箱授权码")
    @TableField("email_password")
    private String emailPassword;

    @ApiModelProperty("邮箱发送端口")
    @TableField("email_port")
    private Integer emailPort;

    @ApiModelProperty("启用邮箱发送")
    @TableField("open_email")
    private Integer openEmail;

    @ApiModelProperty("本地文件地址")
    @TableField("local_file_url")
    private String localFileUrl;

    @ApiModelProperty("文件上传方式 1:本地 2：七牛云")
    @TableField("file_upload_way")
    private Integer fileUploadWay;

    @ApiModelProperty("阿里云ak")
    @TableField("ali_yun_access_key")
    private String aliYunAccessKey;

    @ApiModelProperty("阿里云sk")
    @TableField("ali_yun_secret_key")
    private String aliYunSecretKey;

    @ApiModelProperty("阿里云存储桶名")
    @TableField("ali_yun_bucket")
    private String aliYunBucket;

    @ApiModelProperty("阿里云Endpoint")
    @TableField("ali_yun_endpoint")
    private String aliYunEndpoint;


}
